package 接口.实现多个接口;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-06-18
 * Time: 22:01
 */
//甚至参数可以不是”动物“，只要会跑!
public class Robot implements IRunning {
    private String name;
    public Robot(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println(this.name + "正在用轮子跑");
    }
}
